package com.guo.fristspringboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

public class Guo {
    @JsonProperty("guoID")
    private Integer gId;
    private String gName;
    private String gAge;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    public Guo(Integer gId, String gName, String gAge, Date birthday) {
        this.gId = gId;
        this.gName = gName;
        this.gAge = gAge;
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Guo{" +
                "gId=" + gId +
                ", gName='" + gName + '\'' +
                ", gAge='" + gAge + '\'' +
                ", birthday=" + birthday +
                '}';
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getgId() {
        return gId;
    }

    public void setgId(Integer gId) {
        this.gId = gId;
    }

    public String getgName() {
        return gName;
    }

    public void setgName(String gName) {
        this.gName = gName;
    }

    public String getgAge() {
        return gAge;
    }

    public void setgAge(String gAge) {
        this.gAge = gAge;
    }
}
